|
|
@@ -55,8 +55,8 @@ class ThermometerEquipmentInfo(BaseModelMixin):
|
55
|
55
|
|
56
|
56
|
point_id = models.CharField(_('point_id'), max_length=32, blank=True, null=True, help_text='隔离点唯一标识', db_index=True)
|
57
|
57
|
|
58
|
|
- macid = models.CharField(_('macid'), max_length=255, blank=True, null=True, help_text='设备号')
|
59
|
|
- sn = models.CharField(_('sn'), max_length=255, blank=True, null=True, help_text='序列号')
|
|
58
|
+ macid = models.CharField(_('macid'), max_length=32, blank=True, null=True, help_text='设备号')
|
|
59
|
+ sn = models.CharField(_('sn'), max_length=32, blank=True, null=True, help_text='序列号')
|
60
|
60
|
|
61
|
61
|
active_status = models.IntegerField(_('active_status'), choices=ACTIVE_STATUE_TUPLE, default=OFFLINE, help_text='激活状态')
|
62
|
62
|
active_at = models.DateTimeField(_('active_at'), blank=True, null=True, help_text=_('激活时间'))
|
|
|
@@ -105,8 +105,8 @@ class ThermometerMeasureInfo(BaseModelMixin):
|
105
|
105
|
point_measure_ymd = models.CharField(_('point_measure_ymd'), max_length=10, blank=True, null=True, help_text='隔离点测温日期', db_index=True)
|
106
|
106
|
point_measure_window = models.CharField(_('point_measure_window'), max_length=16, blank=True, null=True, help_text='隔离点测温时间段', db_index=True)
|
107
|
107
|
|
108
|
|
- macid = models.CharField(_('macid'), max_length=255, blank=True, null=True, help_text='设备号')
|
109
|
|
- sn = models.CharField(_('sn'), max_length=255, blank=True, null=True, help_text='序列号')
|
|
108
|
+ macid = models.CharField(_('macid'), max_length=32, blank=True, null=True, help_text='设备号')
|
|
109
|
+ sn = models.CharField(_('sn'), max_length=32, blank=True, null=True, help_text='序列号')
|
110
|
110
|
|
111
|
111
|
temperature = models.FloatField(_('temperature'), default=0, help_text='用户体温')
|
112
|
112
|
|
|
|
@@ -135,8 +135,8 @@ class ThermometerMeasureInfo(BaseModelMixin):
|
135
|
135
|
class ThermometerMeasureLogInfo(BaseModelMixin):
|
136
|
136
|
point_id = models.CharField(_('point_id'), max_length=32, blank=True, null=True, help_text='隔离点唯一标识', db_index=True)
|
137
|
137
|
|
138
|
|
- macid = models.CharField(_('macid'), max_length=255, blank=True, null=True, help_text='设备号')
|
139
|
|
- sn = models.CharField(_('sn'), max_length=255, blank=True, null=True, help_text='序列号')
|
|
138
|
+ macid = models.CharField(_('macid'), max_length=32, blank=True, null=True, help_text='设备号')
|
|
139
|
+ sn = models.CharField(_('sn'), max_length=32, blank=True, null=True, help_text='序列号')
|
140
|
140
|
|
141
|
141
|
temperature = models.FloatField(_('temperature'), default=0, help_text='用户体温')
|
142
|
142
|
|